package com.atguigu.servicebase.result;


import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

@Getter
@AllArgsConstructor
@ToString
public enum ResponseEnum {
    SUCCESS(0, "成功"),
    ERROR(-1, "服务器内部错误"),
    PHONE_EMPTY(-2, "手机号不能为空"),
    PASSWORD_EMPTY(-3,"密码不能为空"),
    MEMBER_NULL(-4, "用户不存在"),
    PASSWORD_ERROR(-5,"密码不正确"),
    MEMBER_DESABLE(-6, "用户被禁用"),
    CODE_EMPTY(-7, "验证码为空"),
    CODE_ERROR(-8, "验证码不正确"),
    MEMBER_EXIST(-9, "用户已存在"),
    LAND_EXPIRATION(-10, "请登陆"),


    INSERT_ERROR(-11, "插入失败"),
    DELETE_ERROR(-12, "删除失败"),
    UPDATE_ERROR(-13, "修改失败"),

    UPLOAD_FILE_ERROR(-101, "文件上传错误"),
    DELETE_FILE_ERROR(-102, "文件删除错误"),
    FILE_PARSING_ERROR(-105, "文件解析错误"),

    MOBILE_NULL_ERROR(-202, "手机号不能为空"),
    MOBILE_ERROR(-203, "手机号不正确"),
    PASSWORD_NULL_ERROR(-204, "密码不能为空"),
    CODE_NULL_ERROR(-205, "验证码不能为空"),
    MOBILE_EXIST_ERROR(-207, "手机号已被注册"),
    LOGIN_MOBILE_ERROR(-208, "用户不存在"),
    LOGIN_PASSWORD_ERROR(-209, "密码不正确"),
    LOGIN_DISABLED_ERROR(-210, "用户已被禁用"),
    LOGIN_AUTH_ERROR(-211, "未登录"),

    SAVE_COURSE_ERROR(-301, "保存课程失败"),
    DELETE_COURSE_ERROR(-302, "删除课程失败"),
    SAVE_COURSEDESCRIPTION_ERROR(-302, "课程详情信息保存失败"),
    COURSE_SUBJECT_ERROR(-303, "课程类别不能为空"),
    GET_COURSE_ERROR(-304, "课程查找失败"),
    UPDATE_COURSE_ERROR(-305, "保存课程信息失败"),
    UPDATE_COURSEDESCRIPTION_ERROR(-306, "课程详情信息保存失败"),
    PUBLISH_COURSE_ERROR(-307, "保存课程信息失败"),

    DELETE_CHAPTER_ERROR(-401, "删除章节失败"),

    SAVE_VIDEOINFO_ERROR(-501, "保存课时信息失败"),
    DELETE_VIDEOINFO_ERROR(-502, "删除课时信息失败"),
    UPDATE_VIDEOINFO_ERROR(-503, "更新课时信息失败"),
    GET_VIDEOINFO_ERROR(-504, "查询课时信息失败"),
    ;

    // 响应状态码
    private Integer code;

    // 响应信息
    private String message;
}
